/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.fjut.se16.aop.advice;

import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;

/**
 *
 * @author danny
 */
public class BeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] os, Object o) throws Throwable {
        System.out.println("前置通知");
//        System.out.println("调用 " + o + " 的 " + method.getName() + " 方法\n" + "方法参数：" + os[0]);
        System.out.println("调用 " + o + " 的 " + method.getName() + " 方法\n");
    }
    
}
